package com.yh.homestay.service;

import com.yh.homestay.common.SysRoleEditResult;
import com.yh.homestay.common.HomeStayResult;
import com.yh.homestay.pojo.SysRole;

import java.util.List;

public interface SysRoleService {
    HomeStayResult selectAll(String roleName, Integer page, Integer limit);

    HomeStayResult update(Integer id, String roleName, String roleDesc);

    HomeStayResult delete(Integer id);

    SysRoleEditResult selectOne(Integer id);

    HomeStayResult delectAll(List<Integer> ids);

    int addSysRole(SysRole sysRole);
}
